# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=gnome-tour
pkgver=42.0
pkgrel=0
pkgdesc="GNOME Tour & Greeter"
url="https://gitlab.gnome.org/GNOME/gnome-tour"
# s390x and riscv64 blocked by cargo
arch="all !s390x !riscv64"
license="GPL-3.0-or-later"
makedepends="meson cargo glib-dev gtk4.0-dev libadwaita-dev"
checkdepends="appstream-glib desktop-file-utils"
subpackages="$pkgname-lang"
source="https://download.gnome.org/sources/gnome-tour/${pkgver%.*}/gnome-tour-$pkgver.tar.xz"

build() {
	abuild-meson . output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

check() {
	meson test --no-rebuild -v -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
b42705ab0458ea0af99ba60c831bc9c84e6122cbbec12a9f7ae2aa83f09c847675221fc9b1867bf6562eab12daa8a4c6deac575cc137d7631d108972fe1271f8  gnome-tour-42.0.tar.xz
"
